
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}">
</head>
<body>
    <fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
        <legend>用户列表</legend>
    </fieldset>

    <div class="layui-form">
        <table class="layui-table">
            <colgroup>
                <col width="150">
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
                <tr>
                    <th>ID</th>
                    <th>用户名</th>
                    <th>密码</th>
                    <th>昵称</th>
                    <th>创建时间</th>
                    <th>最后修改时间</th>
                </tr>
            </thead>
            <tbody>
                <tr th:each="user:${users}">
                    <td th:text="${user.id}"></td>
                    <td th:text="${user.username}"></td>
                    <td th:text="${user.password}"></td>
                    <td th:text="${user.name}"></td>
                    <td th:text="${#dates.format(user.insertTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                    <td th:text="${#dates.format(user.lastModifiedTime,'yyyy-MM-dd HH:mm:ss')}"></td>
                </tr>

            
            </tbody>
        </table>
    </div>

    <script th:src="@{/layui/layui.js}"></script>
</body>
</html>
